<template>
	<view class="bg">
		<view class="box" v-for="(item,index) in list" @click="goPath(item)">
			<text>{{item.title}}</text>
			<u-icon name="arrow-right" color="#666" size="12"></u-icon>
		</view>
		
	</view>
</template>

<script>
	export default {
		data(){
			return{
				list:[]
			}
		},
		onLoad() {
			this.getProblem()
		},
		methods:{
			getProblem(){
				this.$http.post('api/sys/question').then(res=>{
					console.log('res',res);
					this.list=res
				})
			},
			goPath(item){
				uni.setStorageSync('wen',item)
				uni.navigateTo({
					url:'/pages/my/wentiDetil'
				})
			}
			
		
		}
	}
</script>

<style scoped lang="scss">
	.bg{
		width: 100%;
		height: 100vh;
		background-color: #f7f7f7;
		.box{
			width: 100%;
			height: 80rpx;
			font-size: 30rpx;
			background-color: #fff;
			display: flex;
			justify-content: space-between;
			align-items: center;
			padding: 20rpx;
			box-sizing: border-box;
			
			
		}
	}
</style>